/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bean;

/**
 *
 * @author Quang Thao
 */
public class AccountBean {
    private String ID;
    private String Pass;
    private String Name;
    private String Type;
    private String Email;
    private String Address;
    private String Phone;
    
    public AccountBean()
    {
        ID = null;
        Pass = null;
        Name = null;
        Type = null;
        Email = null;
        Address = null;
        Phone = null;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getPass() {
        return Pass;
    }

    public void setPass(String Pass) {
        this.Pass = Pass;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public String getType() {
        return Type;
    }

    public void setType(String Type) {
        this.Type = Type;
    }

    public String getEmail() {
        return Email;
    }

    public void setEmail(String Email) {
        this.Email = Email;
    }

    public String getAddress() {
        return Address;
    }

    public void setAddress(String Address) {
        this.Address = Address;
    }

    public String getPhone() {
        return Phone;
    }

    public void setPhone(String Phone) {
        this.Phone = Phone;
    }
    
    public String getTypeMean()
    {
        String result = null;
        if (Type.equals("adm"))
        {
            result = "Admin";
        }
        else if (Type.equals("sup"))
        {
            result = "Supporter";
        }    
        else if (Type.equals("mem"))
        {
            result = "Member";
        }
        return result;
    }
}
